package br.edu.ufcg.greengrid;

import java.io.IOException;
import java.sql.SQLException;

import br.edu.ufcg.greengrid.workload.GWAWorkloadParser;

public class MainGWAWorkloadParser {

	public static void main(String[] args) throws SQLException, IOException {

		if (args.length != 2) {
			System.err.println("Error! Usage: <outputFileName> <inputFile>");
			System.exit(1);
		}

		int index = 0;
		String outputFileName = args[index++];
		String inputFileName = args[index++];

		GWAWorkloadParser parser = new GWAWorkloadParser();
		parser.parse(inputFileName, outputFileName);
	}

}
